package com.youxue.teachin.set.child.my;

import com.library.uiframework.activity.WrapActionBarFragmentActivity;
import com.library.uiframework.widget.actionbar.ActionBarLayout.Action;
import com.youxue.teachin.R;
import com.youxue.teachin.set.main.vo.KeyValueVO;

/**
 * 更换手机或者简介
 *
 * @author: zhiwei
 * @date: 2017-10-05 21:31
 * @version: 9.1.0
 */
public class ChangeTextOrDesAcitvity extends WrapActionBarFragmentActivity {
    @Override
    protected Class wrapFragmentClass() {

        return ChangeTextFragment.class;
    }

    @Override
    protected void onInitActionBar() {
        super.onInitActionBar();
        int type = getParams().getInt("type", 1);
        if (type == KeyValueVO.TYPE_NIKE_NAME) {
            setTitle("修改昵称");
        } else {
            setTitle("修改介绍");
        }

        int color = getResources().getColor(R.color.set_actionbar_color);
        getActionBarLayout().setActionBarBackground(color);
        setStatusBarColor(color);
        getActionBarLayout().setTitleColorRes(R.color.cl_1);
    }

    @Override
    protected Action createBack() {
        return addLeftImageAction(ACTION_BACK, R.drawable.top_return);
    }
}
